600 |
How can include the values in the inner cells in the drop down filter window
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->PutDrawGridLines(EXGANTTLib::exRowLines); spGantt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spGantt1->PutDescription(EXGANTTLib::exFilterBarBlanks,L""); spGantt1->PutDescription(EXGANTTLib::exFilterBarNonBlanks,L""); EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"Single Column"))); var_Column->PutHTMLCaption(L"Single column with <b>inner cells</b>"); var_Column->PutToolTip(L"Click the drop down filter button, and the filter list includes the inner cells values too."); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutDisplayFilterPattern(VARIANT_FALSE); var_Column->PutFilterList(EXGANTTLib::exIncludeInnerCells); spGantt1->PutShowFocusRect(VARIANT_FALSE); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); _variant_t s = var_Items->GetSplitCell(var_Items->AddItem("S 1.1"),long(0)); var_Items->PutCellCaption(vtMissing,s,"S 1.2"); var_Items->PutCellHAlignment(vtMissing,s,EXGANTTLib::CenterAlignment); var_Items->PutCellBackColor(vtMissing,s,0x1000000); var_Items->PutCellWidth(vtMissing,s,84); s = var_Items->GetSplitCell(var_Items->AddItem("S 2.1"),long(0)); var_Items->PutCellCaption(vtMissing,s,"S 2.2"); var_Items->PutCellHAlignment(vtMissing,s,EXGANTTLib::CenterAlignment); var_Items->PutCellWidth(vtMissing,s,84); s = var_Items->GetSplitCell(var_Items->AddItem("S 3.1"),long(0)); var_Items->PutCellCaption(vtMissing,s,"S 3.2"); var_Items->PutCellHAlignment(vtMissing,s,EXGANTTLib::CenterAlignment); var_Items->PutCellBackColor(vtMissing,s,0x1000000); var_Items->PutCellWidth(vtMissing,s,84); |
599 |
How can I sort the value gets listed in the drop down filter window
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->PutLinesAtRoot(EXGANTTLib::exLinesAtRoot); spGantt1->PutMarkSearchColumn(VARIANT_FALSE); spGantt1->PutDescription(EXGANTTLib::exFilterBarAll,L""); spGantt1->PutDescription(EXGANTTLib::exFilterBarBlanks,L""); spGantt1->PutDescription(EXGANTTLib::exFilterBarNonBlanks,L""); EXGANTTLib::IColumnPtr var_Column = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"P1"))); var_Column->PutDisplayFilterButton(VARIANT_TRUE); var_Column->PutDisplayFilterPattern(VARIANT_FALSE); var_Column->PutFilterList(EXGANTTLib::exSortItemsDesc); EXGANTTLib::IColumnPtr var_Column1 = ((EXGANTTLib::IColumnPtr)(spGantt1->GetColumns()->Add(L"P2"))); var_Column1->PutDisplayFilterButton(VARIANT_TRUE); var_Column1->PutDisplayFilterPattern(VARIANT_FALSE); var_Column1->PutFilterList(EXGANTTLib::exSortItemsAsc); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Z3"); var_Items->PutCellCaption(h,long(1),"C"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Z1"),long(1),"B"); var_Items->PutCellCaption(var_Items->InsertItem(h,vtMissing,"Z2"),long(1),"A"); var_Items->PutExpandItem(h,VARIANT_TRUE); |
598 |
Is there a way to break the hours into 15 minute increments just showing lines instead of the minute numbers
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->BeginUpdate(); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2008,2,5,0,00,00).operator DATE()); spGantt1->GetChart()->PutLevelCount(3); spGantt1->GetChart()->GetLevel(0)->PutLabel("<b><%mmm%> <%dd%></b> <%yyyy%> "); EXGANTTLib::ILevelPtr var_Level = spGantt1->GetChart()->GetLevel(1); var_Level->PutLabel("<%hh%>"); var_Level->PutAlignment(EXGANTTLib::CenterAlignment); EXGANTTLib::ILevelPtr var_Level1 = spGantt1->GetChart()->GetLevel(2); var_Level1->PutLabel(""); var_Level1->PutUnit(EXGANTTLib::exMinute); var_Level1->PutCount(15); spGantt1->GetChart()->PutUnitWidth(6); spGantt1->EndUpdate(); |
597 |
How can I change the visual appearance of the milestone bar using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); EXGANTTLib::IAppearancePtr var_Appearance = spGantt1->GetVisualAppearance(); var_Appearance->Add(1,_bstr_t("gBFLBCJwBAEHhEJAEGg4BKMMQAAYAQGKIYBkAKBQAGaAoDDMMILQiMQwjRBMKgBBCLIxiGK4DhiF4aRTHUKAAKQahLEaSZLhEZRQiqA4sS5FQBSBDQFwSByEY6mSaYJ") + "AWK4tCyNM7SfQAbxnAgYaLAAYRUjuHZOTZAc4UfAdFL/K4AKrfeZIeAiCRQGiYZyHKaRShjDwXKLIIjbJhkNoJChCNQgBScPgxCx8JypaCaar2fjQM6zWAMdb2Cz7PjD" + "H7wPA1WYJRaDYjhcB4LheAqGXBWUYLYb8XS3EKJYhiWA4HjqFjGJpcEzPbRiNx3H6SABlLLaLo7JpGO52FrTHZjXyzLqBVpoOyEbrmcozYzjN41RpWETfQYDcwteqcLp" + "rhGVZrm6dp8j4bAnDQP5Uh+OpcH6R4Lg2YJvEIeg6kWEoJB2ZZyG6GoLCSXxtG+IZ1GmfhJjcawNFWfB/h+V5pnUc5VhWeZ4BMX4jlySwtiAJodlEYRaBYFgHHgIA2gG" + "ExkFUdxFl6A5hgUbgXgcVRzFiXA3CICARAEgI"); var_Appearance->Add(2,"CP:1 -6 0 5 0"); EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart(); var_Chart->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IBarPtr var_Bar = var_Chart->GetBars()->Add(L"MilestoneEBN"); var_Bar->PutColor(0x2000000); var_Bar->PutHeight(14); spGantt1->GetColumns()->Add(L"Tasks"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Milestone"),"Milestone",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,2,0,00,01).operator DATE(),vtMissing,vtMissing); var_Items->AddBar(var_Items->AddItem("Milestone EBN "),"MilestoneEBN",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,2,0,00,01).operator DATE(),vtMissing,vtMissing); |
596 |
How can I change the visual appearance of the summary bar using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetVisualAppearance()->Add(1,_bstr_t("gBFLBCJwBAEHhEJAEGg4BGICg6AADACAxRDAMgBQKAAzQFAYZhhBaERiGEaIJhUAIIRZGMQxXAcMQvDSKQJhGDAADEMgyAJCIxjPIgZBoGqPBpASQJUhkMocR7HMygB") + "IkSRNA8kMwxdQEaw9ECRIDpGaYWTFDhsABTVQRLL0Tw9ISERqoSSaGgkCYaA7CNJ0PBNJSjJ6LJZGURbKqyCQ1DBbUB3BaUaQ9JaKa7pKa7cpWKIqSxEMrxcLFcT5DSb" + "YDxGjLEhmPZBVZQNBxtJbFQHWJCNgzVAdOAAfzQM70GpMQoWJYeVpEObSBD1dABTCBczADYoex7ID+aJuGiYVZdWxJOjfbhkTTIJAaCawABrWxR8iHN5paTnUpzDjwbg" + "0kqRRyr+XwjA8Go/HSBp6g6KJTFcGpWmYdg8H6dJTH0EZelueBfBuLwyBMd50nIfR+kmXB4BECQUAaEYMHQHRHCGFRYI2ZAwEIExghQZA2EIQoGGoEhOgGBBYlAeYYHM" + "WJcDcGx4HYHoHmICIFjeBohkaDAAC2DAjBYJIIiKSI2CSC5hjQJBsCOCwYiIKoGmKWJkn6DANkiWgzCwYwolAcQkksWJaCuDohlicg2hDQR+EELBInKcJohMJBomILoG" + "mISQuESFBOgkOQDg+SoTEyfoXCUSImDyGZhjkaI1hcJgTnoXgACYCYKG2GQkEkVJchKIoZDIbIciYKY+HEP4mlmThSg+aBIlKBYUCUKgGHyG4jEkPoKiAKI6D6EokGkS" + "gyECF5jEKVJZD+aYqHKG4nGoCh+iKJ4qEqBokh+KYag6JoqmqKo2iWJpqgKRJHDiT5qk6NYtCsapmjiLprHqdo6i8awan6QovCwOp6kSLQsBsHpGjKbBbBaMYhm0Cgal" + "ILBtBsUpTiGUIUAQgIA=="); EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart(); var_Chart->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IBarPtr var_Bar = var_Chart->GetBars()->Copy(L"Task",L"Summary"); var_Bar->PutColor(0x1000000); var_Bar->PutHeight(16); spGantt1->GetColumns()->Add(L"Tasks"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Task 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); var_Items->AddBar(var_Items->AddItem("Task 2"),"Summary",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),vtMissing,vtMissing); |
595 |
How can I change the visual appearance of the task bar using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetVisualAppearance()->Add(1,_bstr_t("gBFLBCJwBAEHhEJAEGg4BGoCg6AADACAxRDAMgBQKAAzQFAYZhhBaERiGEaIJhUAIIRZGMQxXAcMQvDSKQJhGLhQiSJoJDSBEgSXDIZQ5D6OZYACDJQACJYJTbAYzyP") + "JkPRAA6EZCmGAwCglf5HABRb7xNLkbQ8GySKJnWCQJhoD5BSLCNRUTRFFQtGgZBpEWwLCjQNQwWLKFoTJIEPSBDKqYDoKYqTgOOZOThHQz3HakQRdAa/ZpnaKpUo2d47" + "XjMWBwGA0EzeAAGaxoShqdoiFaGU7UOJVJBOGwHK6BchoMAKbp6XoVWRaOAWLZWVABM7XLZxbLccyGfZ1XhdV5UbqUMznR7PNrjLKIJpCOJbbyAFwgBaeQABYLhK7iHR" + "mi8XYwjMWpjFWOx1GIB5LmgdB4HCEBECSIBpDGHQOicIwokYPImikEIJj6eJIloEgogSc40FGcJEFiYZIG2VIoAURw1g2QxyAQNwNAMPJOgIYI4CoDIBmAeAKBIUpQDU" + "KJYDoTpIB4vxgmgdgNgeYZDDoFw7CEJhQn+BohmKfImCWSZRlgYwikYMQ0gwF4DniTA/gwBJYjQYwsgoIg6AyCRQDiIJODAZBImoOguAmMZ4lQLIJjOMI3CYZJpEIT4K" + "iKSI6DqD5ZGAAgHC2DAjBYR4SGUGYGE+GIlCmFhRhIB5iFAbwWsiJgMhoCoxngV4ZCcSYOHaGYnHmIg8COJpoCoOISmSWZeHWHgoEkRoAg4EIYB4NogmiSgKg6GRjGoJ" + "gFh+ZJKDaBYjmgaQygiBRUHmbhoDsTAyiqIIoioGoOw8aoKhKKoemeOIaAeF5HmqHoqiyKxKgYaN/locgBiuZRojoVIok8cwsjaMBLGqDoAhGIpoEYWYEmAIxUkQLZmg" + "iYg2g2I4JiCQwuAqWIOIkEAQICA=="); EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart(); var_Chart->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IBarPtr var_Bar = var_Chart->GetBars()->GetItem("Task"); var_Bar->PutColor(0x1000000); var_Bar->PutHeight(16); spGantt1->GetColumns()->Add(L"Tasks"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Task 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); var_Items->AddBar(var_Items->AddItem("Task 2"),"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),vtMissing,vtMissing); |
594 |
How can I change the visual appearance of the task bar using EBN
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetVisualAppearance()->Add(1,_bstr_t("gBFLBCJwBAEHhEJAEGg4BZsIQAAYAQGKIYBkAKBQAGaAoDDMMILQiMQwjRBMKgBBCLIxiGK4DhiGoZATCMbDBIcSwSGgCJCjeS4ZDKHIXSxFUKTBAcSQTGyBRokaYZR") + "i6A4+TRPETTWAEcABHSbQCoKTKAoCHpLQLMYxDKItJSpGYaRgqWCaZpuUIaUzKVbxbK9CSMGiQbIsOJrBqqQozWZHVITLR9VgBNqga7uGR5DoqdovU5dVTVda9Ly5LSs" + "MQvfALCqOe45URdNp3RiVBYfI6+cZvfJLWh4NqeAbCMC1UJoYhlUKCBg0TRoVo9AIDX5QWaYXC0AkBA=="); EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart(); var_Chart->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IBarPtr var_Bar = var_Chart->GetBars()->GetItem("Task"); var_Bar->PutColor(0x1000000); var_Bar->PutHeight(16); spGantt1->GetColumns()->Add(L"Tasks"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Task 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); var_Items->AddBar(var_Items->AddItem("Task 2"),"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),vtMissing,vtMissing); |
593 |
How can I clip the HTML text or caption inside the bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IBarPtr var_Bar = spGantt1->GetChart()->GetBars()->GetItem("Task"); var_Bar->PutPattern(EXGANTTLib::exPatternBox); var_Bar->PutHeight(13); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1","This is a bit of text that get's clipped"); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarHAlignCaption,long(3)); |
592 |
How can I align the text/caption on the scroll bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->PutScrollPartCaption(EXGANTTLib::exHScroll,EXGANTTLib::exLowerBackPart,L"left"); spGantt1->PutScrollPartCaptionAlignment(EXGANTTLib::exHScroll,EXGANTTLib::exLowerBackPart,EXGANTTLib::LeftAlignment); spGantt1->PutScrollPartCaption(EXGANTTLib::exHScroll,EXGANTTLib::exUpperBackPart,L"right"); spGantt1->PutScrollPartCaptionAlignment(EXGANTTLib::exHScroll,EXGANTTLib::exUpperBackPart,EXGANTTLib::RightAlignment); spGantt1->PutColumnAutoResize(VARIANT_FALSE); spGantt1->GetColumns()->Add(L"1"); spGantt1->GetColumns()->Add(L"2"); spGantt1->GetColumns()->Add(L"3"); spGantt1->GetColumns()->Add(L"4"); |
591 |
How do I programmatically control the position of the horizontal scroll bar in the chart area, so I can specify a range of dates to scorll within
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->BeginUpdate(); spGantt1->GetColumns()->Add(L"Task"); EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart(); var_Chart->PutLevelCount(2); var_Chart->PutPaneWidth(VARIANT_FALSE,56); var_Chart->PutScrollRange(EXGANTTLib::exStartDate,COleDateTime(2001,1,1,0,00,00).operator DATE()); var_Chart->PutScrollRange(EXGANTTLib::exEndDate,COleDateTime(2001,1,31,0,00,00).operator DATE()); var_Chart->PutFirstVisibleDate(COleDateTime(2001,1,12,0,00,00).operator DATE()); spGantt1->PutScrollPartCaption(EXGANTTLib::exHChartScroll,EXGANTTLib::exLowerBackPart,_bstr_t(spGantt1->GetChart()->GetScrollRange(EXGANTTLib::exStartDate))); spGantt1->PutScrollPartCaptionAlignment(EXGANTTLib::exHChartScroll,EXGANTTLib::exLowerBackPart,EXGANTTLib::LeftAlignment); spGantt1->PutScrollPartCaption(EXGANTTLib::exHChartScroll,EXGANTTLib::exUpperBackPart,_bstr_t(spGantt1->GetChart()->GetScrollRange(EXGANTTLib::exEndDate))); spGantt1->PutScrollPartCaptionAlignment(EXGANTTLib::exHChartScroll,EXGANTTLib::exUpperBackPart,EXGANTTLib::RightAlignment); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,15,0,00,00).operator DATE(),COleDateTime(2001,1,18,0,00,00).operator DATE(),"K1",vtMissing); h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,11,0,00,00).operator DATE(),"K1",vtMissing); spGantt1->EndUpdate(); |
590 |
How can I programmatically control the position of the "splitter" between the item list on the left side and the gantt chart on the right
|
589 |
How can I add a milestone bar and some text in the chart area
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Milestone",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,2,0,00,00).operator DATE(),vtMissing,"<a1>text</a> outside"); var_Items->PutItemBar(h,vtMissing,EXGANTTLib::exBarHAlignCaption,long(18)); |
588 |
How can I display or align the bar's caption or text outside of the bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->PutDefaultItemHeight(32); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,3,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarCaption,"<b>to do</b>"); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarHAlignCaption,long(18)); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarVAlignCaption,long(16)); |
587 |
How can I display or align the bar's caption or text outside of the bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,4,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarCaption,"to do"); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarHAlignCaption,long(16)); |
586 |
How can I display or align the bar's caption or text outside of the bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarCaption,"to do "); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarHAlignCaption,long(18)); |
585 |
Is there any option to count the non-working days
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->BeginUpdate(); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2002,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Task"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Task",COleDateTime(2002,1,2,0,00,00).operator DATE(),COleDateTime(2002,1,4,0,00,00).operator DATE(),"A",vtMissing); _variant_t var_ItemBar = var_Items->GetItemBar(h,"A",EXGANTTLib::exBarNonWorkingCount); spGantt1->EndUpdate(); |
584 |
Is there any option to count or to specify the working days
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->BeginUpdate(); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2002,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Task"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Task",COleDateTime(2002,1,2,0,00,00).operator DATE(),COleDateTime(2002,1,4,0,00,00).operator DATE(),"A",vtMissing); _variant_t var_ItemBar = var_Items->GetItemBar(h,"A",EXGANTTLib::exBarWorkingCount); spGantt1->EndUpdate(); |
583 |
How do I select the next row/item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddItem("Item 1"); var_Items->AddItem("Item 2"); var_Items->AddItem("Item 3"); var_Items->PutSelectItem(var_Items->GetNextVisibleItem(var_Items->GetFocusItem()),VARIANT_TRUE); |
582 |
How do I define the visual appearance of the bar by using your EBN/skin files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spGantt1->GetChart()->GetBars()->Copy(L"Task",L"EBN")->PutColor(0x1000000); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"EBN",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); var_Items->AddBar(var_Items->AddItem("Item 2"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); |
581 |
Is it possible to have an "empty box" pattern for the bars
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetChart()->GetBars()->Copy(L"Task",L"Box")->PutPattern(EXGANTTLib::exPatternBox); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"Box",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); |
580 |
How do I enable resizing ( changing the height ) the items at runtime
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->PutItemsAllowSizing(EXGANTTLib::exResizeItem); spGantt1->PutDrawGridLines(EXGANTTLib::exHLines); spGantt1->PutScrollBySingleLine(VARIANT_TRUE); spGantt1->GetColumns()->Add(L"Column"); spGantt1->GetItems()->AddItem("Item 1"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->PutItemHeight(var_Items->AddItem("Item 2"),48); spGantt1->GetItems()->AddItem("Item 3"); |
579 |
How do I enable resizing all the items at runtime
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->PutItemsAllowSizing(EXGANTTLib::exResizeAllItems); spGantt1->PutDrawGridLines(EXGANTTLib::exHLines); spGantt1->GetColumns()->Add(L"Column"); spGantt1->GetItems()->AddItem("Item 1"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->PutItemHeight(var_Items->AddItem("Item 2"),48); spGantt1->GetItems()->AddItem("Item 3"); |
578 |
I'm trying to use the percentage display in my gantt's bars. Unfortunately, I don't see any percentage on the gantt chart
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IBarPtr var_Bar = spGantt1->GetChart()->GetBars()->Copy(L"Task",L"BarName"); var_Bar->PutColor(RGB(255,0,0)); var_Bar->PutPattern(EXGANTTLib::exPatternBDiagonal); spGantt1->GetChart()->GetBars()->Add(L"BarName%Progress")->PutShortcut(L"Percent"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Percent",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPercent,double(0.4)); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarShowPercentCaption,VARIANT_TRUE); |
577 |
How I can show Months in Time Unit panel into Roman numerals
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetChart()->PutLevelCount(2); spGantt1->GetChart()->GetLevel(0)->PutLabel(long(0)); EXGANTTLib::ILevelPtr var_Level = spGantt1->GetChart()->GetLevel(1); var_Level->PutLabel("<%mr%>"); var_Level->PutUnit(EXGANTTLib::exMonth); |
576 |
Can I show a bar with a different vertical position
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Opaque"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); h = var_Items->AddItem("Transparent and Opaque"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarOffset,"-3"); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarTransparent,long(80)); var_Items->AddBar(h,"Task",COleDateTime(2001,1,3,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); |
575 |
How can I show transparent and opaque bars in the same chart
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Opaque"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); h = var_Items->AddItem("Transparent and Opaque"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarOffset,"-3"); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarTransparent,long(80)); var_Items->AddBar(h,"Task",COleDateTime(2001,1,3,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); |
574 |
How can I draw bars using transparent colors
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetChart()->PutShowTransparentBars(60); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetChart()->GetBars()->Copy(L"Task",L"TaskR")->PutColor(RGB(255,0,0)); spGantt1->GetChart()->PutPaneWidth(VARIANT_FALSE,48); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Item 1"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"A",vtMissing); var_Items->AddBar(h,"TaskR",COleDateTime(2001,1,4,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"B",vtMissing); |
573 |
Can I change the Task bar so it display a Progress or a Percent bar, but it is splitted when the task intersect a non working area
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart(); var_Chart->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); var_Chart->GetBars()->Add(L"Task%Progress:Split")->PutShortcut(L"Task"); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Item 1"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,16,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPercent,double(0.15)); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarShowPercentCaption,VARIANT_TRUE); |
572 |
Can I change the Task bar so it display a Progress or a Percent bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart(); var_Chart->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); var_Chart->GetBars()->Add(L"Task%Progress")->PutShortcut(L"Task"); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Item 1"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPercent,double(0.15)); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarShowPercentCaption,VARIANT_TRUE); |
571 |
How can I remove the filter
|
570 |
I use the ShowEmptyBars property, but I display seconds from 15 to 15, and the bars are not shown correctly. What can I do
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->BeginUpdate(); EXGANTTLib::IChartPtr var_Chart = spGantt1->GetChart(); var_Chart->PutFirstVisibleDate(COleDateTime(2002,1,1,0,00,00).operator DATE()); var_Chart->PutLevelCount(2); var_Chart->GetLevel(0)->PutLabel(long(1048576)); EXGANTTLib::ILevelPtr var_Level = var_Chart->GetLevel(1); var_Level->PutLabel("<%ss%>"); var_Level->PutCount(15); var_Chart->PutShowEmptyBars(15); var_Chart->PutShowEmptyBarsUnit(EXGANTTLib::exSecond); var_Chart->PutPaneWidth(VARIANT_FALSE,48); spGantt1->GetColumns()->Add(L"Task"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Task",COleDateTime(2002,1,1,0,00,15).operator DATE(),COleDateTime(2002,1,1,0,00,15).operator DATE(),"A",vtMissing); var_Items->AddBar(h,"Task",COleDateTime(2002,1,1,0,01,15).operator DATE(),COleDateTime(2002,1,1,0,01,30).operator DATE(),"B",vtMissing); var_Items->AddLink("AB",h,"A",h,"B"); spGantt1->EndUpdate(); |
569 |
I need the bar works like in the MS Project, where task from 1/1/2001 to 1/1/2001 must display 1 day
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetChart()->PutShowEmptyBars(1); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,1,0,00,00).operator DATE(),COleDateTime(2001,1,1,0,00,00).operator DATE(),vtMissing,vtMissing); |
568 |
I have a bar that has the start and end date identical. Nothing is displayed. What can I do
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetChart()->PutShowEmptyBars(1); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,2,0,00,00).operator DATE(),vtMissing,vtMissing); |
567 |
How can I display seconds and bars for 15 to 15
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->BeginUpdate(); spGantt1->GetChart()->PutFirstVisibleDate("1/1/2002 00:00"); spGantt1->GetChart()->PutLevelCount(2); spGantt1->GetChart()->GetLevel(0)->PutLabel(long(1048576)); EXGANTTLib::ILevelPtr var_Level = spGantt1->GetChart()->GetLevel(1); var_Level->PutLabel("<%ss%>"); var_Level->PutCount(15); spGantt1->GetChart()->PutPaneWidth(VARIANT_FALSE,48); spGantt1->GetChart()->GetBars()->Copy(L"Task",L"Task2")->PutColor(RGB(255,0,0)); spGantt1->GetColumns()->Add(L"Task"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Task","1/1/2002 00:00:15","1/1/2002 00:00:45","A",vtMissing); var_Items->AddBar(h,"Task2","1/1/2002 00:01:15","1/1/2002 00:01:45","B",vtMissing); var_Items->AddLink("AB",h,"A",h,"B"); spGantt1->EndUpdate(); |
566 |
How can I copy a predefined bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetChart()->GetBars()->Copy(L"Task",L"T2")->PutColor(RGB(255,0,0)); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"T2",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); |
565 |
How can I define my own custom bar, using my icons or pictures
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXGANTTLib::IBarsPtr var_Bars = spGantt1->GetChart()->GetBars(); var_Bars->AddShapeCorner(long(12345),long(1)); var_Bars->AddShapeCorner(long(22345),long(2)); EXGANTTLib::IBarPtr var_Bar = var_Bars->Add(L"T2"); var_Bar->PutStartShape(EXGANTTLib::ShapeCornerEnum(0x5740 | EXGANTTLib::exShapeIconCircleUp1)); var_Bar->PutEndShape(EXGANTTLib::ShapeCornerEnum(0x3020 | EXGANTTLib::exShapeIconVBar | EXGANTTLib::exShapeIconRight)); var_Bar->PutEndColor(RGB(255,0,0)); var_Bar->PutPattern(EXGANTTLib::exPatternDot); var_Bar->PutColor(RGB(255,0,255)); var_Bar->PutShape(EXGANTTLib::exShapeThinCenter); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"T2",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); |
564 |
How can I access a predefined bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); spGantt1->GetChart()->GetBars()->GetItem("Task")->PutColor(RGB(255,0,0)); |
563 |
How can I access a predefined bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); spGantt1->GetChart()->GetBars()->GetItem("Task")->PutColor(RGB(255,0,0)); |
562 |
How can I remove all predefined bars
|
561 |
How can I remove a predefined bar
|
560 |
How do I get the number of predefined bars
|
559 |
How can I change the height of the task bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); EXGANTTLib::IBarPtr var_Bar = spGantt1->GetChart()->GetBars()->Copy(L"Task",L"T2"); var_Bar->PutHeight(24); var_Bar->PutEndShape(EXGANTTLib::exShapeIconDown1); var_Bar->PutEndColor(RGB(255,0,0)); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Item 1"); var_Items->PutItemHeight(h,28); var_Items->AddBar(h,"T2",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); var_Items->AddBar(var_Items->AddItem("Item 2"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); |
558 |
How can I change the ending shape for all task bars
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); EXGANTTLib::IBarPtr var_Bar = spGantt1->GetChart()->GetBars()->GetItem("Task"); var_Bar->PutEndShape(EXGANTTLib::exShapeIconUp1); var_Bar->PutEndColor(RGB(255,0,0)); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); |
557 |
How can I change the height of the task bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->PutDefaultItemHeight(28); spGantt1->GetChart()->GetBars()->GetItem("Task")->PutHeight(24); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); var_Items->AddBar(var_Items->AddItem("Item 2"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); |
556 |
How can I change the starting shape for all task bars
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); EXGANTTLib::IBarPtr var_Bar = spGantt1->GetChart()->GetBars()->GetItem("Task"); var_Bar->PutStartShape(EXGANTTLib::exShapeIconUp1); var_Bar->PutStartColor(RGB(255,0,0)); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); |
555 |
How can I change the height of the task bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetChart()->GetBars()->Copy(L"Task",L"T2")->PutHeight(17); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"T2",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); var_Items->AddBar(var_Items->AddItem("Item 2"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); |
554 |
How can I change the height for all task bars
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetChart()->GetBars()->GetItem("Task")->PutHeight(17); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); |
553 |
How can I change the color of the task bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetChart()->GetBars()->Copy(L"Task",L"T2")->PutColor(RGB(255,0,0)); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"T2",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); var_Items->AddBar(var_Items->AddItem("Item 2"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); |
552 |
How can I change the color for all task bars
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetChart()->GetBars()->GetItem("Task")->PutColor(RGB(255,0,0)); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); |
551 |
How can I change the shape for all task bars
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetChart()->GetBars()->GetItem("Task")->PutShape(EXGANTTLib::exShapeSolidDown); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); |
550 |
How can I change the shape of the task bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetChart()->GetBars()->Copy(L"Task",L"T2")->PutShape(EXGANTTLib::exShapeThinCenter); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"T2",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); |
549 |
How can I change the pattern or style for all task bars
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetChart()->GetBars()->GetItem("Task")->PutPattern(EXGANTTLib::exPatternFDiagonal); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); |
548 |
How can I change the pattern of the task bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetChart()->GetBars()->Copy(L"Task",L"T2")->PutPattern(EXGANTTLib::exPatternFDiagonal); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetColumns()->Add(L"Column"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Item 1"),"T2",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); var_Items->AddBar(var_Items->AddItem("Item 2"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); |
547 |
How can I add a percent bar in the chart area, so the task bar is splited for non working days or hours
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->GetBars()->Add(L"Task%Progress:Split")->PutShortcut(L"TS"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"TS",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,16,0,00,00).operator DATE(),"P1",vtMissing); var_Items->PutItemBar(h,"P1",EXGANTTLib::exBarPercent,double(0.14)); var_Items->PutItemBar(h,"P1",EXGANTTLib::exBarShowPercentCaption,VARIANT_TRUE); |
546 |
How can I add a bar in the chart area, so the task bar is splited for non working days or hours
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->GetBars()->Add(L"Task:Split")->PutShortcut(L"TS"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Task 1"),"TS",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,16,0,00,00).operator DATE(),vtMissing,vtMissing); |
545 |
How can I add a split bar in the chart area
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Task 1"),"Split",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),vtMissing,vtMissing); |
544 |
How can I add a progress bar in the chart area
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Task 1"),"Progress",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),vtMissing,vtMissing); |
543 |
How can I add a milestone bar in the chart area
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Task 1"),"Milestone",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,2,0,00,00).operator DATE(),vtMissing,vtMissing); |
542 |
How can I add a summary bar in the chart area
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Task 1"),"Summary",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),vtMissing,vtMissing); |
541 |
How can I add a project summary bar in the chart area
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Task 1"),"Project Summary",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),vtMissing,vtMissing); |
540 |
How can I add a deadline bar in the chart area
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Task 1"),"Deadline",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,2,0,00,00).operator DATE(),vtMissing,vtMissing); |
539 |
How can I add a task bar in the chart area
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); var_Items->AddBar(var_Items->AddItem("Task 1"),"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),vtMissing,vtMissing); |
538 |
How can I assign a picture or an icon to a bar in the chart
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->PutHTMLPicture(L"p1","c:\\exontrol\\images\\zipdisk.gif"); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->PutItemHeight(h,48); var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarCaption,"<img>p1</img>"); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarHAlignCaption,long(2)); |
537 |
How can I assign a picture or an icon to a bar in the chart
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarCaption,"<img>1</img>"); |
536 |
How can I display or add an anchor or a hyperlink in the link
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,1,0,00,00).operator DATE(),COleDateTime(2001,1,3,0,00,00).operator DATE(),"K1",vtMissing); var_Items->AddItem(""); var_Items->AddItem(""); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->PutLink("L1",EXGANTTLib::exLinkText,"just <a1>link</a>"); |
535 |
How can I display a picture or an icon on the link
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,1,0,00,00).operator DATE(),COleDateTime(2001,1,3,0,00,00).operator DATE(),"K1",vtMissing); var_Items->AddItem(""); var_Items->AddItem(""); var_Items->AddItem(""); var_Items->AddItem(""); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->PutLink("L1",EXGANTTLib::exLinkText,"just <img>1</img> link"); |
534 |
How can I display a picture or an icon on the link
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif"); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,1,0,00,00).operator DATE(),COleDateTime(2001,1,3,0,00,00).operator DATE(),"K1",vtMissing); var_Items->AddItem(""); var_Items->AddItem(""); var_Items->AddItem(""); var_Items->AddItem(""); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->PutLink("L1",EXGANTTLib::exLinkText,"<img>pic1</img><br><br>just a link"); |
533 |
How can I display some HTML text or caption on link
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,1,0,00,00).operator DATE(),COleDateTime(2001,1,3,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->PutLink("L1",EXGANTTLib::exLinkText,"L<b>1</b>"); |
532 |
How can I assign a tooltip to a link
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,1,0,00,00).operator DATE(),COleDateTime(2001,1,3,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->PutLink("L1",EXGANTTLib::exLinkText,"L<b>1</b>"); var_Items->PutLink("L1",EXGANTTLib::exLinkToolTip,"This is a bit of text that's shown when the cursor hovers the link"); |
531 |
Can I change the width or the size of the link
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->PutLink("L1",EXGANTTLib::exLinkStyle,long(0)); var_Items->PutLink("L1",EXGANTTLib::exLinkWidth,long(2)); |
530 |
Can I change the style of the link
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->PutLink("L1",EXGANTTLib::exLinkStyle,long(4)); |
529 |
Can I change the color of the link
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->PutLink("L1",EXGANTTLib::exLinkColor,long(255)); |
528 |
Can I change the part of the bar where the link ends
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->PutLink("L1",EXGANTTLib::exLinkStartPos,long(1)); var_Items->PutLink("L1",EXGANTTLib::exLinkEndPos,long(1)); |
527 |
Can I change the part of the bar where the link starts
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->PutLink("L1",EXGANTTLib::exLinkStartPos,long(0)); |
526 |
How can I associate an extra data to a link
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->PutLink("L1",EXGANTTLib::exLinkUserData,"your data"); |
525 |
How can I show or hide a specified link
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->PutLink("L1",EXGANTTLib::exLinkEndBar,VARIANT_FALSE); |
524 |
How can I get the key of the bar where the link end
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->AddItem(var_Items->GetLink("L1",EXGANTTLib::exLinkEndBar)); |
523 |
How can I get the key of the bar where the link starts
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->AddItem(var_Items->GetLink("L1",EXGANTTLib::exLinkStartBar)); |
522 |
How can I get the handle of the item where the link ends
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->AddItem(var_Items->GetLink("L1",EXGANTTLib::exLinkEndItem)); |
521 |
How can I get the handle of the item where the link starts
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->AddItem(var_Items->GetLink("L1",EXGANTTLib::exLinkStartItem)); |
520 |
How can I enumerate the links in the chart
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->AddLink("L2",h2,"K2",h1,"K1"); var_Items->AddItem(var_Items->GetFirstLink()); var_Items->AddItem(var_Items->GetNextLink(var_Items->GetFirstLink())); |
519 |
How can I access the properties and method of the link between two bars
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,1,0,00,00).operator DATE(),COleDateTime(2001,1,3,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->PutLink("L1",EXGANTTLib::exLinkText,"L<b>1</b>"); |
518 |
How can I remove a link between two bars
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->ClearLinks(); |
517 |
How can I remove a link between two bars
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); var_Items->RemoveLink("L1"); |
516 |
How do I add a link between two bars
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h1 = var_Items->AddItem("Task 1"); var_Items->AddBar(h1,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,4,0,00,00).operator DATE(),"K1",vtMissing); long h2 = var_Items->AddItem("Task 2"); var_Items->AddBar(h2,"Task",COleDateTime(2001,1,5,0,00,00).operator DATE(),COleDateTime(2001,1,7,0,00,00).operator DATE(),"K2",vtMissing); var_Items->AddLink("L1",h1,"K1",h2,"K2"); |
515 |
How do I find the number or count of bars in the item
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,1,0,00,00).operator DATE(),COleDateTime(2001,1,2,0,00,00).operator DATE(),"K1",vtMissing); var_Items->AddBar(h,"Task",COleDateTime(2001,1,4,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K2",vtMissing); var_Items->PutItemBar(h,"K2",EXGANTTLib::exBarCaption,var_Items->GetItemBar(h,vtMissing,EXGANTTLib::exBarsCount)); |
514 |
How can I assign any extra data to a bar in the chart
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPattern,"your data"); |
513 |
Is there any way to change the background color for percent value being displayed on the progress bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetChart()->GetBars()->Add(L"Task%Progress")->PutShortcut(L"Percent"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Percent",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPercent,double(0.35)); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarShowPercentCaption,VARIANT_TRUE); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPercentCaptionFormat,"<bgcolor=FF0000> %p%</bgcolor>"); |
512 |
Is there any way to change the color for percent value being displayed on the progress bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetChart()->GetBars()->Add(L"Task%Progress")->PutShortcut(L"Percent"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Percent",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPercent,double(0.35)); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarShowPercentCaption,VARIANT_TRUE); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPercentCaptionFormat,"<fgcolor=FF0000>%p%</fgcolor>"); |
511 |
Is there any way to change the font for percent value being displayed on the progress bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetChart()->GetBars()->Add(L"Task%Progress")->PutShortcut(L"Percent"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Percent",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPercent,double(0.35)); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarShowPercentCaption,VARIANT_TRUE); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPercentCaptionFormat,"<b><font Tahoma;12>%%p</font></b>"); |
510 |
Is there any way to align the percent value being displayed on the progress bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetChart()->GetBars()->Add(L"Task%Progress")->PutShortcut(L"Percent"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Percent",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPercent,double(0.75)); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarShowPercentCaption,VARIANT_TRUE); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPercentCaptionFormat,"%p/100"); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarOffset,long(0)); |
509 |
Is there any way to change the format of the percent being displayed on the progress bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetChart()->GetBars()->Add(L"Task%Progress")->PutShortcut(L"Percent"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Percent",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPercent,double(0.4)); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarShowPercentCaption,VARIANT_TRUE); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPercentCaptionFormat,"<b>%p/100</b>"); |
508 |
How can I show or hide the percent value in the progress bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetChart()->GetBars()->Add(L"Task%Progress")->PutShortcut(L"Percent"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Percent",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPercent,double(0.4)); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarShowPercentCaption,VARIANT_TRUE); |
507 |
How can I change the percent value in a progress bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetChart()->GetBars()->Add(L"Task%Progress")->PutShortcut(L"Percent"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Percent",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPercent,double(0.4)); |
506 |
How can I add a percent bar
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetChart()->GetBars()->Add(L"Task%Progress"); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Task%Progress",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarPercent,double(0.4)); |
505 |
Can I add a bar in the chart, using your EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,5,0,00,00).operator DATE(),"K1"," EBN "); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarBackColor,long(16777216)); var_Items->AddBar(h,"Task",COleDateTime(2001,1,6,0,00,00).operator DATE(),COleDateTime(2001,1,8,0,00,00).operator DATE(),"K2",vtMissing); |
504 |
How can I change the background color of the bar in the chart
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); spGantt1->GetChart()->GetBars()->Copy(L"Task",L"TaskR")->PutColor(RGB(255,0,0)); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"TaskR",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); |
503 |
How can I change the background color of the bar in the chart
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarBackColor,long(8421504)); |
502 |
How can I change the background color of the HTML text or caption of the bar in the chart
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1",vtMissing); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarCaption,"<bgcolor=FF0000> to do </bgcolor>"); |
501 |
How can I change the foreground color of the HTML text or caption of the bar in the chart
/* Copy and paste the following directives to your header file as it defines the namespace 'EXGANTTLib' for the library: 'ExGantt 1.0 Control Library' #import <ExGantt.dll> using namespace EXGANTTLib; */ EXGANTTLib::IGanttPtr spGantt1 = GetDlgItem(IDC_GANTT1)->GetControlUnknown(); spGantt1->GetColumns()->Add(L"Task"); spGantt1->GetChart()->PutFirstVisibleDate(COleDateTime(2001,1,1,0,00,00).operator DATE()); EXGANTTLib::IItemsPtr var_Items = spGantt1->GetItems(); long h = var_Items->AddItem("Task 1"); var_Items->AddBar(h,"Task",COleDateTime(2001,1,2,0,00,00).operator DATE(),COleDateTime(2001,1,6,0,00,00).operator DATE(),"K1","t<fgcolor=0000FF>o</fgcolor> do"); var_Items->PutItemBar(h,"K1",EXGANTTLib::exBarForeColor,long(16777215)); |